class Auth{
    async getImageCode(ctx) {
        const res = await fetch({
            url:'/imageCode',
            method:'GET'
        },ctx)
        return res
    }
    async login(data,ctx) {
        const result = await fetch({
            url:'/user/login',
            method:'POST',
            data
        },ctx)
        return result
    }
    async passwordKey (ctx) {
        const res = await fetch({
            url:'/user/passwordKey',
            method:'GET',
        },ctx)
        return res
    }
}

export default Auth